package com.sgy;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author shenguangyang
 * @date 2022-08-14 9:35
 */
@Component
public class ServerRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        Server server = new Server();
        server.await();
    }
}
